package com.example.rmi;

import java.net.MalformedURLException;
import java.rmi.AlreadyBoundException;
import java.rmi.Naming;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;

/**
 * TODO: 这里要写注释的!
 */
public class Server {
    public static void main(String[] args) throws RemoteException, AlreadyBoundException, MalformedURLException {
        IService service= new HelloImpl();
        LocateRegistry.createRegistry(8888);
        Naming.bind("rmi://localhost:8888/r_hello",service);
    }
}
